using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN BoMonService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: BoMonService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class BoMonService : IBoMonService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: BoMon_ID</para>
		/// <para>Output: BoMonEntity</para>
		///</summary>
		public BoMonEntity SelectOne(int BoMon_ID){
			BoMonDAO dao = new BoMonDAO();
			return dao.SelectOne(BoMon_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaBoMon</para>
		/// <para>Input: MaBoMon</para>
		/// <para>Output: BoMonEntity</para>
		///</summary>
		public BoMonEntity SelectOneByMaBoMon(string MaBoMon){
			BoMonDAO dao = new BoMonDAO();
			return dao.SelectOneByMaBoMon(MaBoMon);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of BoMonEntity</para>
		///</summary>
		public List<BoMonEntity> SelectAll(){
			BoMonDAO dao = new BoMonDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			BoMonDAO dao = new BoMonDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of BoMonEntity</para>
		///</summary>
		public List<BoMonEntity> SelectAllFilter(string strFilter){
			BoMonDAO dao = new BoMonDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			BoMonDAO dao = new BoMonDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: BoMonEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(BoMonEntity o){
			BoMonDAO dao = new BoMonDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: BoMonEntity</para>
		/// <para>Output: BoMonEntity</para>
		///</summary>
		public BoMonEntity SaveRet(BoMonEntity o){
			BoMonDAO dao = new BoMonDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of BoMonEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<BoMonEntity> list){
			BoMonDAO dao = new BoMonDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of BoMonEntity</para>
		/// <para>Output: List of BoMonEntity</para>
		///</summary>
		public List<BoMonEntity> SaveListRet(List<BoMonEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: BoMonEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(BoMonEntity o){
			BoMonDAO dao = new BoMonDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of BoMonEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<BoMonEntity> list){
			BoMonDAO dao = new BoMonDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaBoMon</para>
		/// <para>Input: NewMaBoMon,BoMon_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaBoMon(string NewMaBoMon,int BoMon_ID){
			BoMonDAO dao = new BoMonDAO();
			return dao.UpdateMaBoMon(NewMaBoMon,BoMon_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenBoMon</para>
		/// <para>Input: NewTenBoMon,BoMon_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenBoMon(string NewTenBoMon,int BoMon_ID){
			BoMonDAO dao = new BoMonDAO();
			return dao.UpdateTenBoMon(NewTenBoMon,BoMon_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaBoMon</para>
		/// <para>Input: NewMoTaBoMon,BoMon_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaBoMon(string NewMoTaBoMon,int BoMon_ID){
			BoMonDAO dao = new BoMonDAO();
			return dao.UpdateMoTaBoMon(NewMoTaBoMon,BoMon_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateKhoa_ID</para>
		/// <para>Input: NewKhoa_ID,BoMon_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKhoa_ID(int NewKhoa_ID,int BoMon_ID){
			BoMonDAO dao = new BoMonDAO();
			return dao.UpdateKhoa_ID(NewKhoa_ID,BoMon_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: BoMonEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(BoMonEntity o){
			BoMonDAO dao = new BoMonDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: BoMon_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int BoMon_ID){
			BoMonDAO dao = new BoMonDAO();
			return dao.DeleteByID(BoMon_ID);
		}
		#endregion

		#region Select join to Khoa functions
		#endregion

		#region Select,delete by BoMon_ID functions
		#endregion

		#region Select,delete by Khoa_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END BoMonWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

